package com.example.back.jpa;

import com.example.common.entity.HospitalDepartment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface DepartmentRository  extends JpaRepository<HospitalDepartment,Long> {

    HospitalDepartment findByName(String name);
}
